package com.evl.common.persistence.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.evl.common.persistence.model.ScheduleStation;
import com.evl.common.persistence.model.StationSeatR;
import com.evl.ticketRemainder.vo.TrainSeatScheduleVo;

/**
 * <p>
  * 调度车站与座位关系表 Mapper 接口
 * </p>
 *
 * @author yangliwei
 * @since 2017-06-16
 */
public interface StationSeatRMapper extends BaseMapper<StationSeatR> {

	List<Integer> selectStationSeatIds(@Param("stationId")Integer stationId);
	
	List<StationSeatR> selectStationSeatRs(@Param("stationId")Integer stationId);

	void batchUpdate(@Param("list") List<StationSeatR> stationSeatRList);
	
	void updateSeat(StationSeatR stationSeatR);

	void deleteByStationIds(List<ScheduleStation> ssList);

	StationSeatR selectStationSeatROne(TrainSeatScheduleVo tssVo);

	void batchCancleLock(List<StationSeatR> stationSeatRList);

	StationSeatR selectByStationIdSeatId(StationSeatR stationSeatR);

	StationSeatR findStationSeatRByIDF(@Param("staId")Integer staId, @Param("identification")String cardNo);

}